//
// Catalog
// --------------------------------------------------
.catalog-container {
  background-color: @container-page-bg;
  padding: 40px 20px 30px;
}
.catalog-container_header {
  .make-row(@grid-gutter-width);
  position: relative;
  margin-bottom: 20px;

  h1 {
    .make-md-column(3, @grid-gutter-width);
    margin-top: 0;
  }
  //
  // Search field
  // -----------------------------
  .field-search {
    background-color: @btn-primary-bg;
    display: none;
    height: 50px;
    width: 100%;
    padding: 8px 40px 8px 8px;
    position: absolute;
    right: 0;
    top:0;

    input {
      .form-control;
      font-size: 22px;
      padding: 2px 12px;
    }
  }

  .btn-search {
    .button-primary;
    padding: 0;
    position: absolute;
    top: 0;
    right: 0;
    height: 50px;
    width: 50px;
    .el-icon-search {
      font-size: 34px;
      position: absolute;
      top: 8px;
      left: 8px;
    }
  }
}
.catalog-nav_w {
  .make-md-column(9, @grid-gutter-width);
}
.catalog-nav {
  font-size: 18px;
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;

  li {
    float: left;
    margin-right: 50px;

    a {
      text-decoration: none;
      border-bottom: 1px dotted @link-color;
    }

    &.active a{
      color: @text-color;
      cursor: pointer;
      border-bottom:none;
    }

  }
}

// -----------------------------

.category-list {
  .make-row(@grid-gutter-width);
}


.category-list_i_w {
  .make-md-column(3, @grid-gutter-width);
  .make-sm-column(4, @grid-gutter-width);
  @media (min-width: @screen-xs-min) and (max-width: @screen-sm-max) {
    .make-xs-column(6, @grid-gutter-width);
  }
}

.category-list_i {
  border-bottom: 1px solid #8cc7da;
  margin: 0 20px 20px 0;
}

.category-list_items {
  font-size: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  word-wrap: break-word;

  li {
    a {

    }
    .category-list_items_count {
      margin-left: 5px;
    }
  }
}

.category-list_showmore {
  text-align: center;
  color: #8cc7da;
  cursor: pointer;
  font-size: 24px;
}
.category-list_with_add_w {
  .make-row(@grid-gutter-width);
}
.category-list_with_add {
    .make-md-column(9, @grid-gutter-width);
    .category-list_i_w {
      .make-md-column(3, @grid-gutter-width);
  }
}

.catalog-container_add {
  .make-md-column(3, @grid-gutter-width);
}
//
// Popup for catalog
// -----------------------------------

.category-list_popup {
  .modal;

  .modal-dialog {
    margin: 60px auto;
  }
  .modal-header {
    padding: 20px 15px 0 15px;
  }
  .modal-title {
    font-size: 23px;
  }
  .modal-body {
    padding: 15px 15px 30px;
  }
  .category-list_items {

    li {
       display: inline-block;
        overflow: hidden;
        width: 30%;
    }
  }

}